﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseUI;
using Utility;
using Utility.Model; 

namespace MsgCenter.Web.Pages.User
{
    public partial class Option_Auth : BasePage
    {
        protected string strType = ParamsOfRequest.Request("type");
        protected string strGuID = ParamsOfRequest.Request("UserID");
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                if (strType == "Set")
                {
                    hidUserID.Value = strGuID;
                    txtName.ToReadOnly();
                    txtUserName.ToReadOnly();
                    Sys_User model = BLL.BLLServiceHelper.GetUserService().GetModel(strGuID);
                    if (model != null)
                    {
                        txtName.Value = model.Name;
                        txtUserName.Value = model.UserName;
                    }
                }
            }
        }
    }
}